import {
  Config
} from "../../../utils/config.js";
import api from "../../../utils/api.js"
import * as com from "../../../utils/common.js"
const Base = new com.Base();
var app = getApp();

Page({

  data: {

  },

  onGotUserInfo: function (e) {

    // 把用户信息保存到全局变量
    app.globalData.userInfo = e.detail.userInfo

    // 登录成功提示
    wx.showToast({
      title: '登录成功',
      icon: 'success',
      complete: function () {

        setTimeout(function () {
          // 跳转到首页
          wx.switchTab({
            url: '/pages/tabBar/my/my',
          })
        }, 1000)

      }
    })


  },

})